package com.ittable.rpcdemo.server;

import com.ittable.rpcdmeo.enu.HealthyEnum;
import com.ittable.rpcdmeo.pojo.Element;
import com.ittable.rpcdmeo.service.HealthyService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author srh
 * @date 2020/10/17
 **/
public class HealthyServiceImpl extends UnicastRemoteObject implements HealthyService {

    private static final long serialVersionUID = -4670678596748726405L;

    protected HealthyServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String getStatus(Element element) {
        return HealthyEnum.SUCCESS.name();
    }
}
